package com.imddy.gkrpc.client;

import java.util.Arrays;
import java.util.List;

import com.imddy.gkrpc.Peer;
import com.imddy.gkrpc.codec.Decoder;
import com.imddy.gkrpc.codec.Encoder;
import com.imddy.gkrpc.codec.JSONDecoder;
import com.imddy.gkrpc.codec.JSONEncoder;
import com.imddy.gkrpc.transport.HttpTransportClient;
import com.imddy.gkrpc.transport.TransportClient;

import lombok.Data;

@Data
public class RpcClientConfig {

	private Class<? extends TransportClient>  transportClientClass = HttpTransportClient.class;
	private Class<? extends Encoder> encoderClass = JSONEncoder.class;
	private Class<? extends Decoder> decoderClass = JSONDecoder.class;
	private Class<? extends TransportSelector> transportSelectorClass =RandomTransportSelector.class;
	private int connectCount = 1;
	private List<Peer> servers = Arrays.asList(
			new Peer("127.0.0.1", 3000)
	);
	
}
